#ifndef _COPYUSER_H
#define _COPYUSER_H

#define get_user1(d, s) __get_user1((unsigned char *)d, (unsigned char *)s)
#define put_user1(d, x) __put_user1((unsigned char *)d, (unsigned char)x)

#define get_user2(d, s) __get_user2((unsigned short *)d, (unsigned short *)s)
#define put_user2(d, x) __put_user2((unsigned short *)d, (unsigned short)x)

#define get_user4(d, s) __get_user4((unsigned long *)d, (unsigned long *)s)
#define put_user4(d, x) __put_user4((unsigned long *)d, (unsigned long )x)

#define memcpy_to_user memcpy_from_user
#define strcpy_to_user strcpy_from_user

extern int __get_user1(unsigned char * dest, unsigned char * src);
extern int __put_user1(unsigned char * dest, unsigned char x);
extern int __get_user2(unsigned short * dest, unsigned short * src);
extern int __put_user2(unsigned short * dest, unsigned short x);
extern int __get_user4(unsigned long * dest, unsigned long * src);
extern int __put_user4(unsigned long * dest, unsigned long x);
extern int memcpy_from_user(void * dest, const void * src, int n);
extern int memset_user(void * dest, int ch, int n);
extern int strlen_user(const char * str);
extern char * strcpy_from_user(char * dest, const char * src);

#endif
